package app.lockenabler;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class Donate extends Activity {
    /** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.donate);
        
        ImageView DNT = (ImageView)findViewById(R.id.paypal);
        DNT.setOnClickListener(new View.OnClickListener() {
            public void onClick(View arg0) {
            	String url = getString(R.string.paypal)+"cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3WFRV66W2P74E";
            	Intent i = new Intent(Intent.ACTION_VIEW);
            	i.setData(Uri.parse(url));
            	startActivity(i);
            }
        });
        
        LinearLayout LOT = (LinearLayout)findViewById(R.id.layout);
        LOT.setOnClickListener(new View.OnClickListener() {
            public void onClick(View arg0) {
            	finish();
            }
        });
    }
    
    @Override
    protected void onPause() {
 	   super.onPause();
 	   finish();
    }
}
